home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
s
/
itemtofront.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-03-14
|
266b
|
18 lines
/*
Item To Front
Puts an item to the front of a list
*/
parse arg item, list
if item = '' then return(list)
stringpos = pos(item, list)
if stringpos ~= 0 then
do
list = delstr(list, stringpos, length(item) + 1)
list = item || '0a'x || list
end
return(list)